<?php

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/


Route::get('/pickupcode', 'PickupCodeController@index');
Route::post('/pickupcode', 'PickupCodeController@submit');

Route::get('/article/{id}','ArticleController@show')->name('article.show');

Route::get('/airport', 'AirportController@index');
Route::get('/airport/{id}', 'AirportController@show')->name('airport.show');

Route::get('/test', 'PickupCodeController@test');
Route::get('/coupon', 'CouponController@index')->name('coupon.index');
Route::get('/coupon/{id}', 'CouponController@show')->name('coupon.show');
Route::get('/coupon_country/{id}', 'CouponController@index_country')->name('coupon.country');

Route::get('/service', 'ServiceController@index')->name('service.index');

Route::get('/purchase/pc/{id}', 'PurchaseController@show')->name('purchase.show');
Route::get('/purchase/pc/', 'PurchaseController@index')->name('purchase.index');

Route::get('/purchase/mobile/{id}', 'PurchaseController@wap_show')->name('purchase.wap_show');
Route::get('/purchase/mobile/', 'PurchaseController@wap_index')->name('purchase.wap_index');
Route::get('/purchase/type/mobile/{id}', 'PurchaseController@wap_type')->name('purchase.wap_type');